#include <CODEPORTS/codeports.h>
#include <stdlib.h>
#include <stdio.h>

int
main(int argc, char **argv)
{
	int key;

	CP_Init();

	do
	{
		if((key = KEY_Update()))
			printf("Code: %i\n", key);
	}
	while(key != 1);

	CP_Final();

	return EXIT_SUCCESS;
}
